<?php
/**
 * Created by PhpStorm.
 * User: zd
 * Date: 2018/8/16
 * Time: 18:05
 */

namespace app\api\model;


class UserAddress extends BaseModel
{
    protected $hidden = ['delete_time','update_time','user_id'];

    protected $autoWriteTimestamp = true;
    /**
     * 返回用户地址
     * @param $uid
     * @return array|false|\PDOStatement|string|\think\Model
     */
    public static function getUserAddressByUID($uid){
        return self::where('user_id','=',$uid)->find();
    }
}